package com.zc.nettycilent.events;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class MyEventListener {

    @EventListener
    public void handleEvent(Object event) {
        log.info("接收到事件: {} ", event);
    }
}
